package com.woniuxy.woniufp.system.service.impl;

import com.woniuxy.woniufp.system.entity.UserDetail;
import com.woniuxy.woniufp.system.mapper.UserDetailMapper;
import com.woniuxy.woniufp.system.service.IUserDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserDetailServiceImpl implements IUserDetailService {
    @Autowired
    UserDetailMapper userDetailMapper ;
    @Override
    public void modifyUserDetailOfStatusByReqCode(String reqCode, int status) {
        userDetailMapper.updateUserDetailOfStatusByReqCode(reqCode,status);
    }

    @Override
    public UserDetail findUserDetailByReqCode(String reqCode) {
        return userDetailMapper.selectUserDetailByReqCode(reqCode);
    }
}
